<!DOCTYPE html>
<html>
<head>
    <title>门店耗材盘点表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <el-row style="margin:10px;">
            <el-table size="small" height="750" :data="storeMaterialCheckList" border style="width: 100%">
                <el-table-column prop="checkId" align="center" label="盘点id" width="180"></el-table-column>
                <el-table-column prop="checkNo" align="center" label="盘点编号" width="180"></el-table-column>
                <el-table-column prop="stockId" align="center" label="仓库id" width="180"></el-table-column>
                <el-table-column prop="status" align="center" label="盘点状态" width="180"></el-table-column>
                <el-table-column prop="remark" align="center" label="盘点备注" width="180"></el-table-column>
                <el-table-column prop="checkName" align="center" label="审核人" width="180"></el-table-column>
                <el-table-column prop="checkTime" align="center" label="审核时间" width="100"></el-table-column>
                <el-table-column prop="checkRemark" align="center" label="审核备注" width="100"></el-table-column>
                <el-table-column prop="createName" align="center" label="盘点记录人" width="180"></el-table-column>
                <el-table-column prop="createTime" align="center" label="盘点时间" width="180"></el-table-column>
                <el-table-column  align="center" label="操作" width="220">
                    <template slot-scope="scope">
                        <el-button type="primary" @click="view(scope.$index)" size="small">查看</el-button>
                        <!--<el-button type="primary" @click="audit(scope.row.checkId,true)" size="small">审核</el-button>-->
                    </template>
                </el-table-column>
            </el-table>
            <el-pagination
                    layout="sizes, prev, pager, next"
                    :page-count = "page.pageCount"
                    :page-size = "page.size"
                    :page-sizes="[10, 20, 30, 40]"
                    :current-page = "page.currentPage"
                    :total="page.totalCount"
                    @current-change = currentChange
                    @size-change = sizeChange>
            </el-pagination>
        </el-row>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <el-card class="box-card">
            <div style="text-align:center" class="text item">
                <el-button type="primary" @click="audit" size="small">审核结果提交</el-button>
                <el-button type="primary" @click="goBack" size="small">返回</el-button>
            </div>
        </el-card>
        <template>
            <el-table size="small" height="750" :data="storeMaterialCheckDetailVoList" border style="width: 100%">
                <el-table-column prop="materialId" align="center" label="耗材id" width="100"></el-table-column>
                <el-table-column prop="materialName" align="center" label="耗材名称" width="180"></el-table-column>
                <el-table-column prop="specifications" align="center" label="规格" width="180"></el-table-column>
                <el-table-column prop="materialModel" align="center" label="型号" width="180"></el-table-column>
                <el-table-column prop="length" align="center" label="长" width="150"></el-table-column>
                <el-table-column prop="width" align="center" label="宽" width="150"></el-table-column>
                <el-table-column prop="weight" align="center" label="克重" width="100"></el-table-column>
                <el-table-column prop="unit" align="center" label="单位" width="100"></el-table-column>
                <el-table-column prop="cost" align="center" label="成本价" width="100"></el-table-column>
                <el-table-column prop="systemQuantity" align="center" label="系统数量" width="180"></el-table-column>
                <el-table-column prop="actualQuantity" align="center" label="实际数量" width="180"></el-table-column>
                <el-table-column  align="center" label="盘点情况" width="130">
                    <template slot-scope="scope">
                        <!--<el-input size="mini" v-model="scope.row.checkResult"/>-->
                        <lable style="color:green;" v-if="scope.row.checkResult > 0">盘盈 : {{scope.row.checkResult}}</lable>
                        <lable style="color:red;" v-if="scope.row.checkResult < 0">盘亏 : {{scope.row.checkResult}}</lable>
                    </template>
                </el-table-column>
                <el-table-column  align="center" label="操作" width="130">
                    <template slot-scope="scope">
                        <el-select v-model="scope.row.status" size="small" :disabled="scope.row.operationMark">
                            <el-option v-for="status in e.checkStatus" size="small" :key="status.value" :label="status.label" :value="status.value"></el-option>
                        </el-select>
                    </template>
                </el-table-column>
            </el-table>
        </template>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/storeMaterialCheck/storematerialcheck.js?_${.now?long}"></script>
</body>
</html>